package cn.xiaobai.core.domain.config;

import cn.xiaobai.core.repository.PluginDataFactory;
import lombok.Data;

import java.util.List;

/**
 * 根据面板配置
 *
 * @Author yangdaji
 * @Date 2023/12/11
 * @PackageName cn.xiaobai.core.domain.config
 * @ClassName ToolsConfig
 */
@Data
public class ToolsConfig {

    private List<ToolInfo> toolInfos;

    public ToolsConfig(List<ToolInfo> toolInfos) {
        this.toolInfos = toolInfos;
    }

    public List<ToolInfo> buildToolConf(PluginDataFactory pluginDataFactory) {
        for (ToolInfo toolInfo : toolInfos) {
            toolInfo.buildInConf(pluginDataFactory);
        }
        return toolInfos;
    }

}
